﻿namespace Example
{
    using Cavity;

    using Xunit;

    public sealed class CavityDateFacts
    {
        [Fact]
        public void opImplicit_string_Date()
        {
            const string expected = "1999-12-31";
            string actual = new Date(1999, 12, 31);

            Assert.Equal(expected, actual);
        }

        [Fact]
        public void opLesser_Date_Date()
        {
            Date one = "1999-12-31";
            Date two = "2000-01-01";

            Assert.True(one < two);
        }
    }
}